package lab03.test03;

import java.io.*;

public class Test03 {
    public static void main(String[] args) throws IOException {
        File file  = new File("G:\\test.txt");

        OutputStream outputStream = null;
        outputStream = new FileOutputStream(file);

        String  string = "Beijing欢迎你！";
        String  string1 = "我的学号是：1606101124";

        byte []b = string.getBytes();
        outputStream.write(b);
       byte []b1 = string1.getBytes();
       outputStream.write(b1);

        outputStream.close();
    }
}
